//
//  HYUIScale.h
//  HyjrApp
//
//  Created by sgf on 2018/3/29.
//  Copyright © 2018年 Bank of Hangzhou Consumer Finance Co.,Ltd. All rights reserved.
//

#import <Foundation/Foundation.h>

//字体缩放（以iphone6为标准尺寸）
//extern CGFloat scale_font(CGFloat fontsize);
//
////缩放高度（根据屏幕全宽）(以iphone6为标准尺寸)
extern CGFloat scale_by_screen_width(CGFloat height);

//缩放缩放高度（及少数情况下使用 (以iphone6为标准尺寸)
extern CGFloat scale_by_screen_height(CGFloat height);


////自定义尺寸进行高度缩放
extern CGFloat scale_height(CGFloat height, CGFloat width, CGFloat realWidth);


extern CGRect scale_rect(CGRect rect);

extern CGSize scale_size(CGSize size);



@interface UIFont (Scale)

+ (UIFont *) scale_systemFontOfSize:(CGFloat)fontSize;
+ (UIFont *) scale_boldSystemFontOfSize:(CGFloat)fontSize;

@end


@interface MASConstraint(Scale)
- (MASConstraint * (^)(CGFloat var))scale_equalTo;
- (MASConstraint * (^)(CGSize size))scale_equalToSize;
- (MASConstraint * (^)(CGFloat offset))scale_offset;

- (MASConstraint * (^)(CGFloat var))scale_equalTo_by_screen_heigh;
- (MASConstraint * (^)(CGFloat var))scale_offset_by_screen_heigh;
@end
